package com.hongpu.controller;

import com.hongpu.dto.EmployeeMonthlyExpensesDto;
import com.hongpu.service.EmployeeMonthlyExpensesService;
import com.hongpu.utils.ResultDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/** 人员月度费用
 * @author 张玉胜
 * @since 2025年06月11日
 */
@RestController
@RequestMapping("/employeeMonthlyExpenses")
public class EmployeeMonthlyExpensesController {
    @Autowired
    EmployeeMonthlyExpensesService employeeMonthlyExpensesService;

    /**
     * 分页查询
     * @param employeeMonthlyExpensesDto
     * @return
     */
    @PostMapping("/page")
    public ResultDto page(@RequestBody EmployeeMonthlyExpensesDto employeeMonthlyExpensesDto) {
        return employeeMonthlyExpensesService.page(employeeMonthlyExpensesDto);
    }


}